*Table 1 Characteristics of the sample
{ 
*RESET DATA
{ 
	clear
  
	*Import data file
	. import delimited "C:\Users\Payton\Desktop\Survey responses.csv", case(upper) clear

	*Label survey responses
	{ 
	. label define LANGUAGE 0 "English" 1 "Spanish"
	. label define YESNO 0 "Yes" 1 "No"
	. label values TAKENBEFORE YESNO
	. label values LANGUAGE LANGUAGE
	. label define TransportationMode 0 "Drove car" 1 "Got a ride" 2 "Walk" 3 "Bus" 4 "Bike" 5 "Taxi" 6 "Other"
	. label values TRANSPORTATIONMODE TransportationMode
	. label values CAROWNERSHIP YESNO
	. label define TRIPDURATION 0 "0-4 minutes" 1 "5-14 minutes" 2 "15-29 minutes" 3 "30-59 minutes" 4 "60+ minutes"
	. label values TRIPDURATION TRIPDURATION
	. label define ParkingDistance 0 "Less than 1 block" 1 "1 block" 2 "2 blocks" 3 "3 blocks" 4 "4+ blocks"
	. label values PARKINGDISTANCE ParkingDistance
	. label values TRIPCHAINING YESNO
	. label define HowLongComing 0 "First time" 1 "Less than 1 month" 2 "1-5 months" 3 "6-11 months" 4 "1 year or more"
	. label values HOWLONGCOMING HowLongComing
	. label define VisitsLastMonth 0 "0 months" 1 "1 month" 2 "2 months" 3 "3 months" 4 "4 months"
	. label define YESNOIDONTKNOW 0 "Yes" 1 "No" 2 "I don't know"
	. label values VISITSLASTMONTH VisitsLastMonth
	. label values CLOSESTPANTRY YESNOIDONTKNOW
	. label values DISABILITY YESNO
	. label values CART YESNO
	. label define DIFFICULTYEASE 0 "Very difficult" 1 "Somewhat difficult" 2 "Neither easy nor difficult" 3 "Somewhat easy" 4 "Very easy"
	. label define HELPFULNESS 0 "Very unhelpful" 1 "Somewhat unhelpful" 2 "Neither unhelpful nor helpful" 3 "Somewhat helpful" 4 "Very helpful"
	. label values EASECARRYINGBAGS DIFFICULTYEASE
	. label values EASEPAYINGFORTRAVEL DIFFICULTYEASE
	. label values EASETRAVELTOPANTRY DIFFICULTYEASE
	. label values EASETRAVELTOHOME DIFFICULTYEASE
	. label values EASEAFFORDBUS DIFFICULTYEASE
	. label values EASETRAVELTOBUSSTOP DIFFICULTYEASE
	. label values HELPFULNESSBUSFARE HELPFULNESS
	. label values HELPFULNESSHANDGRIPS HELPFULNESS
	. label values HELPFULNESSRIDESHARE HELPFULNESS
	. label values HELPFULNESSREDUCESPEED HELPFULNESS
	. label values HELPFULNESSBIKEPARKING HELPFULNESS
	. label define Gender 0 "Male" 1 "Female" 2 "Other"
	. label values GENDER Gender
	. label define Ethnicity 0 "Asian" 1 "Black" 2 "Native American/Pacific Islander" 3 "White" 4 "Hispanic/Latino" 5 "Other"
	. label values ETHNICITY Ethnicity
	. label define Income 0 "<$9999" 1 "$10000-22999" 2 "$23000-49999" 3 "$50000-74999" 4 "$75000+" 5 "Prefer not to answer"
	. label define FoodShare 0 "None" 1 "$1-49" 2 "$50-99" 3 "$100-149" 4 "$150-199" 5 "$200+" 6 "Prefer not to answer"
	. label values INCOME Income
	. label values FOODSHARE FoodShare
}

}

	*Combine AGE into age-group bins, called newAGE
	. egen newAGE = cut(AGE), at(0, 30, 50, 65, 100) icodes
	. label define AgeBins 0 "<30 years" 1 "30-49 years" 2 "50-64 years" 3 "65+ years"
	. label values newAGE AgeBins

	*Combine DISTANCETODESTINATION into bins, called newDISTANCETODESTINATION
	. egen newDISTANCETODESTINATION = cut(DISTANCETODESTINATION), at(0, 1, 2, 3, 4, 5, 100) icodes
	. label define DistanceBins 0 "<1 mile" 1 "1-2 miles" 2 "2-3 miles" 3 "3-4 miles" 4 "4-5 miles" 5 ">5 miles"
	. label values newDISTANCETODESTINATION DistanceBins

	. tabulate newAGE
	. tabulate ETHNICITY
	. tabulate GENDER
	. tabulate LANGUAGE
	. tabulate TRANSPORTATIONMODE
	. tabulate CAROWNERSHIP
	. tabulate DISABILITY
	. tabulate TRIPCHAINING
	. tabulate INCOME
	. tabulate FOODSHARE
	. tabulate newDISTANCETODESTINATION
	. tabulate TRIPDURATION
	. tabulate CART
	. tabulate CLOSESTPANTRY
	. summarize AGE FAMILYSIZE DISTANCEFROMORIGIN DISTANCETODESTINATION TOTALDISTANCE TOTALPEOPLEONTRIP HOWMANYCHILDREN HOWMANYADULTS
}
*-------------------------------------------------------------------------------



*Table 2 Responses to Likert Questions, split into two tables to avoid exceeding 1200 observations in Small Stata
{ 

*RESET DATA
{ 
  clear
  
	*Import data file
	. import delimited "C:\Users\Payton\Desktop\Survey responses.csv", case(upper) clear

	*Label survey responses
	{ 
	. label define LANGUAGE 0 "English" 1 "Spanish"
	. label define YESNO 0 "Yes" 1 "No"
	. label values TAKENBEFORE YESNO
	. label values LANGUAGE LANGUAGE
	. label define TransportationMode 0 "Drove car" 1 "Got a ride" 2 "Walk" 3 "Bus" 4 "Bike" 5 "Taxi" 6 "Other"
	. label values TRANSPORTATIONMODE TransportationMode
	. label values CAROWNERSHIP YESNO
	. label define TRIPDURATION 0 "0-4 minutes" 1 "5-14 minutes" 2 "15-29 minutes" 3 "30-59 minutes" 4 "60+ minutes"
	. label values TRIPDURATION TRIPDURATION
	. label define ParkingDistance 0 "Less than 1 block" 1 "1 block" 2 "2 blocks" 3 "3 blocks" 4 "4+ blocks"
	. label values PARKINGDISTANCE ParkingDistance
	. label values TRIPCHAINING YESNO
	. label define HowLongComing 0 "First time" 1 "Less than 1 month" 2 "1-5 months" 3 "6-11 months" 4 "1 year or more"
	. label values HOWLONGCOMING HowLongComing
	. label define VisitsLastMonth 0 "0 months" 1 "1 month" 2 "2 months" 3 "3 months" 4 "4 months"
	. label define YESNOIDONTKNOW 0 "Yes" 1 "No" 2 "I don't know"
	. label values VISITSLASTMONTH VisitsLastMonth
	. label values CLOSESTPANTRY YESNOIDONTKNOW
	. label values DISABILITY YESNO
	. label values CART YESNO
	. label define DIFFICULTYEASE 0 "Very difficult" 1 "Somewhat difficult" 2 "Neither easy nor difficult" 3 "Somewhat easy" 4 "Very easy"
	. label define HELPFULNESS 0 "Very unhelpful" 1 "Somewhat unhelpful" 2 "Neither unhelpful nor helpful" 3 "Somewhat helpful" 4 "Very helpful"
	. label values EASECARRYINGBAGS DIFFICULTYEASE
	. label values EASEPAYINGFORTRAVEL DIFFICULTYEASE
	. label values EASETRAVELTOPANTRY DIFFICULTYEASE
	. label values EASETRAVELTOHOME DIFFICULTYEASE
	. label values EASEAFFORDBUS DIFFICULTYEASE
	. label values EASETRAVELTOBUSSTOP DIFFICULTYEASE
	. label values HELPFULNESSBUSFARE HELPFULNESS
	. label values HELPFULNESSHANDGRIPS HELPFULNESS
	. label values HELPFULNESSRIDESHARE HELPFULNESS
	. label values HELPFULNESSREDUCESPEED HELPFULNESS
	. label values HELPFULNESSBIKEPARKING HELPFULNESS
	. label define Gender 0 "Male" 1 "Female" 2 "Other"
	. label values GENDER Gender
	. label define Ethnicity 0 "Asian" 1 "Black" 2 "Native American/Pacific Islander" 3 "White" 4 "Hispanic/Latino" 5 "Other"
	. label values ETHNICITY Ethnicity
	. label define Income 0 "<$9999" 1 "$10000-22999" 2 "$23000-49999" 3 "$50000-74999" 4 "$75000+" 5 "Prefer not to answer"
	. label define FoodShare 0 "None" 1 "$1-49" 2 "$50-99" 3 "$100-149" 4 "$150-199" 5 "$200+" 6 "Prefer not to answer"
	. label values INCOME Income
	. label values FOODSHARE FoodShare
}

}

	*Install tab_chi package at SSC (N.J. Cox)
	. ssc install tab_chi

	*Create table of overal Likert response frequencies
	. tabm EASECARRYINGBAGS EASEPAYINGFORTRAVEL EASETRAVELTOPANTRY 
	. tabm EASETRAVELTOHOME EASEAFFORDBUS EASETRAVELTOBUSSTOP
}
*-------------------------------------------------------------------------------



*Table 3 Distance traveled (roundtrip) by transportation mode (ANOVA)
{ 

*RESET DATA
{ 
  clear
  
	*Import data file
	. import delimited "C:\Users\Payton\Desktop\Survey responses.csv", case(upper) clear

	*Label survey responses
	{ 
	. label define LANGUAGE 0 "English" 1 "Spanish"
	. label define YESNO 0 "Yes" 1 "No"
	. label values TAKENBEFORE YESNO
	. label values LANGUAGE LANGUAGE
	. label define TransportationMode 0 "Drove car" 1 "Got a ride" 2 "Walk" 3 "Bus" 4 "Bike" 5 "Taxi" 6 "Other"
	. label values TRANSPORTATIONMODE TransportationMode
	. label values CAROWNERSHIP YESNO
	. label define TRIPDURATION 0 "0-4 minutes" 1 "5-14 minutes" 2 "15-29 minutes" 3 "30-59 minutes" 4 "60+ minutes"
	. label values TRIPDURATION TRIPDURATION
	. label define ParkingDistance 0 "Less than 1 block" 1 "1 block" 2 "2 blocks" 3 "3 blocks" 4 "4+ blocks"
	. label values PARKINGDISTANCE ParkingDistance
	. label values TRIPCHAINING YESNO
	. label define HowLongComing 0 "First time" 1 "Less than 1 month" 2 "1-5 months" 3 "6-11 months" 4 "1 year or more"
	. label values HOWLONGCOMING HowLongComing
	. label define VisitsLastMonth 0 "0 months" 1 "1 month" 2 "2 months" 3 "3 months" 4 "4 months"
	. label define YESNOIDONTKNOW 0 "Yes" 1 "No" 2 "I don't know"
	. label values VISITSLASTMONTH VisitsLastMonth
	. label values CLOSESTPANTRY YESNOIDONTKNOW
	. label values DISABILITY YESNO
	. label values CART YESNO
	. label define DIFFICULTYEASE 0 "Very difficult" 1 "Somewhat difficult" 2 "Neither easy nor difficult" 3 "Somewhat easy" 4 "Very easy"
	. label define HELPFULNESS 0 "Very unhelpful" 1 "Somewhat unhelpful" 2 "Neither unhelpful nor helpful" 3 "Somewhat helpful" 4 "Very helpful"
	. label values EASECARRYINGBAGS DIFFICULTYEASE
	. label values EASEPAYINGFORTRAVEL DIFFICULTYEASE
	. label values EASETRAVELTOPANTRY DIFFICULTYEASE
	. label values EASETRAVELTOHOME DIFFICULTYEASE
	. label values EASEAFFORDBUS DIFFICULTYEASE
	. label values EASETRAVELTOBUSSTOP DIFFICULTYEASE
	. label values HELPFULNESSBUSFARE HELPFULNESS
	. label values HELPFULNESSHANDGRIPS HELPFULNESS
	. label values HELPFULNESSRIDESHARE HELPFULNESS
	. label values HELPFULNESSREDUCESPEED HELPFULNESS
	. label values HELPFULNESSBIKEPARKING HELPFULNESS
	. label define Gender 0 "Male" 1 "Female" 2 "Other"
	. label values GENDER Gender
	. label define Ethnicity 0 "Asian" 1 "Black" 2 "Native American/Pacific Islander" 3 "White" 4 "Hispanic/Latino" 5 "Other"
	. label values ETHNICITY Ethnicity
	. label define Income 0 "<$9999" 1 "$10000-22999" 2 "$23000-49999" 3 "$50000-74999" 4 "$75000+" 5 "Prefer not to answer"
	. label define FoodShare 0 "None" 1 "$1-49" 2 "$50-99" 3 "$100-149" 4 "$150-199" 5 "$200+" 6 "Prefer not to answer"
	. label values INCOME Income
	. label values FOODSHARE FoodShare
}

}

	*Drop "Bike" and "Other" observations
	. drop if (TRANSPORTATIONMODE >3)

	*Perform Oneway ANOVA and multiple-comparisons test (pairwise comparisons) to compare mean distance traveled between transportation modes
	. oneway TOTALDISTANCE TRANSPORTATIONMODE, bonferroni tabulate
}
*-------------------------------------------------------------------------------



*Table 4 Characteristics between patrons who own or have access to a car and patrons who do not 
{ 

*RESET DATA
{ 
  clear
  
	*Import data file
	. import delimited "C:\Users\Payton\Desktop\Survey responses.csv", case(upper) clear

	*Label survey responses
	{ 
	. label define LANGUAGE 0 "English" 1 "Spanish"
	. label define YESNO 0 "Yes" 1 "No"
	. label values TAKENBEFORE YESNO
	. label values LANGUAGE LANGUAGE
	. label define TransportationMode 0 "Drove car" 1 "Got a ride" 2 "Walk" 3 "Bus" 4 "Bike" 5 "Taxi" 6 "Other"
	. label values TRANSPORTATIONMODE TransportationMode
	. label values CAROWNERSHIP YESNO
	. label define TRIPDURATION 0 "0-4 minutes" 1 "5-14 minutes" 2 "15-29 minutes" 3 "30-59 minutes" 4 "60+ minutes"
	. label values TRIPDURATION TRIPDURATION
	. label define ParkingDistance 0 "Less than 1 block" 1 "1 block" 2 "2 blocks" 3 "3 blocks" 4 "4+ blocks"
	. label values PARKINGDISTANCE ParkingDistance
	. label values TRIPCHAINING YESNO
	. label define HowLongComing 0 "First time" 1 "Less than 1 month" 2 "1-5 months" 3 "6-11 months" 4 "1 year or more"
	. label values HOWLONGCOMING HowLongComing
	. label define VisitsLastMonth 0 "0 months" 1 "1 month" 2 "2 months" 3 "3 months" 4 "4 months"
	. label define YESNOIDONTKNOW 0 "Yes" 1 "No" 2 "I don't know"
	. label values VISITSLASTMONTH VisitsLastMonth
	. label values CLOSESTPANTRY YESNOIDONTKNOW
	. label values DISABILITY YESNO
	. label values CART YESNO
	. label define DIFFICULTYEASE 0 "Very difficult" 1 "Somewhat difficult" 2 "Neither easy nor difficult" 3 "Somewhat easy" 4 "Very easy"
	. label define HELPFULNESS 0 "Very unhelpful" 1 "Somewhat unhelpful" 2 "Neither unhelpful nor helpful" 3 "Somewhat helpful" 4 "Very helpful"
	. label values EASECARRYINGBAGS DIFFICULTYEASE
	. label values EASEPAYINGFORTRAVEL DIFFICULTYEASE
	. label values EASETRAVELTOPANTRY DIFFICULTYEASE
	. label values EASETRAVELTOHOME DIFFICULTYEASE
	. label values EASEAFFORDBUS DIFFICULTYEASE
	. label values EASETRAVELTOBUSSTOP DIFFICULTYEASE
	. label values HELPFULNESSBUSFARE HELPFULNESS
	. label values HELPFULNESSHANDGRIPS HELPFULNESS
	. label values HELPFULNESSRIDESHARE HELPFULNESS
	. label values HELPFULNESSREDUCESPEED HELPFULNESS
	. label values HELPFULNESSBIKEPARKING HELPFULNESS
	. label define Gender 0 "Male" 1 "Female" 2 "Other"
	. label values GENDER Gender
	. label define Ethnicity 0 "Asian" 1 "Black" 2 "Native American/Pacific Islander" 3 "White" 4 "Hispanic/Latino" 5 "Other"
	. label values ETHNICITY Ethnicity
	. label define Income 0 "<$9999" 1 "$10000-22999" 2 "$23000-49999" 3 "$50000-74999" 4 "$75000+" 5 "Prefer not to answer"
	. label define FoodShare 0 "None" 1 "$1-49" 2 "$50-99" 3 "$100-149" 4 "$150-199" 5 "$200+" 6 "Prefer not to answer"
	. label values INCOME Income
	. label values FOODSHARE FoodShare
}

}

	*Collapse Likert responses into "Difficult" and "Not difficult" bins
	. recode EASETRAVELTOHOME (0/1 = 1 "Difficult") (2/4 = 2 "Not difficult"), gen(newEASETRAVELTOHOME) 
	. recode EASEPAYINGFORTRAVEL (0/1 = 1 "Difficult") (2/4 = 2 "Not difficult"), gen(newEASEPAYINGFORTRAVEL)
	. recode EASETRAVELTOPANTRY (0/1 = 1 "Difficult") (2/4 = 2 "Not difficult"), gen(newEASETRAVELTOPANTRY)
	. recode EASECARRYINGBAGS (0/1 = 1 "Difficult") (2/4 = 2 "Not difficult"), gen(newEASECARRYINGBAGS)

	*Perform Chi-square analysis
	. tabulate newEASETRAVELTOPANTRY CAROWNERSHIP, row col chi2
	. tabulate newEASETRAVELTOHOME CAROWNERSHIP, row col chi2
	. tabulate newEASEPAYINGFORTRAVEL CAROWNERSHIP, row col chi2
	. tabulate newEASECARRYINGBAGS CAROWNERSHIP, row col chi2
	. tabulate CART CAROWNERSHIP, row col chi2
	. tabulate DISABILITY CAROWNERSHIP, row col chi2
	. tabulate TRIPCHAINING CAROWNERSHIP, row col chi2
}
*-------------------------------------------------------------------------------



*Table 5 Characteristics between patrons who walk and patrons who take the bus 
{ 
*RESET DATA
{ 
  clear
  
	*Import data file
	. import delimited "C:\Users\Payton\Desktop\Survey responses.csv", case(upper) clear

	*Label survey responses
	{ 
	. label define LANGUAGE 0 "English" 1 "Spanish"
	. label define YESNO 0 "Yes" 1 "No"
	. label values TAKENBEFORE YESNO
	. label values LANGUAGE LANGUAGE
	. label define TransportationMode 0 "Drove car" 1 "Got a ride" 2 "Walk" 3 "Bus" 4 "Bike" 5 "Taxi" 6 "Other"
	. label values TRANSPORTATIONMODE TransportationMode
	. label values CAROWNERSHIP YESNO
	. label define TRIPDURATION 0 "0-4 minutes" 1 "5-14 minutes" 2 "15-29 minutes" 3 "30-59 minutes" 4 "60+ minutes"
	. label values TRIPDURATION TRIPDURATION
	. label define ParkingDistance 0 "Less than 1 block" 1 "1 block" 2 "2 blocks" 3 "3 blocks" 4 "4+ blocks"
	. label values PARKINGDISTANCE ParkingDistance
	. label values TRIPCHAINING YESNO
	. label define HowLongComing 0 "First time" 1 "Less than 1 month" 2 "1-5 months" 3 "6-11 months" 4 "1 year or more"
	. label values HOWLONGCOMING HowLongComing
	. label define VisitsLastMonth 0 "0 months" 1 "1 month" 2 "2 months" 3 "3 months" 4 "4 months"
	. label define YESNOIDONTKNOW 0 "Yes" 1 "No" 2 "I don't know"
	. label values VISITSLASTMONTH VisitsLastMonth
	. label values CLOSESTPANTRY YESNOIDONTKNOW
	. label values DISABILITY YESNO
	. label values CART YESNO
	. label define DIFFICULTYEASE 0 "Very difficult" 1 "Somewhat difficult" 2 "Neither easy nor difficult" 3 "Somewhat easy" 4 "Very easy"
	. label define HELPFULNESS 0 "Very unhelpful" 1 "Somewhat unhelpful" 2 "Neither unhelpful nor helpful" 3 "Somewhat helpful" 4 "Very helpful"
	. label values EASECARRYINGBAGS DIFFICULTYEASE
	. label values EASEPAYINGFORTRAVEL DIFFICULTYEASE
	. label values EASETRAVELTOPANTRY DIFFICULTYEASE
	. label values EASETRAVELTOHOME DIFFICULTYEASE
	. label values EASEAFFORDBUS DIFFICULTYEASE
	. label values EASETRAVELTOBUSSTOP DIFFICULTYEASE
	. label values HELPFULNESSBUSFARE HELPFULNESS
	. label values HELPFULNESSHANDGRIPS HELPFULNESS
	. label values HELPFULNESSRIDESHARE HELPFULNESS
	. label values HELPFULNESSREDUCESPEED HELPFULNESS
	. label values HELPFULNESSBIKEPARKING HELPFULNESS
	. label define Gender 0 "Male" 1 "Female" 2 "Other"
	. label values GENDER Gender
	. label define Ethnicity 0 "Asian" 1 "Black" 2 "Native American/Pacific Islander" 3 "White" 4 "Hispanic/Latino" 5 "Other"
	. label values ETHNICITY Ethnicity
	. label define Income 0 "<$9999" 1 "$10000-22999" 2 "$23000-49999" 3 "$50000-74999" 4 "$75000+" 5 "Prefer not to answer"
	. label define FoodShare 0 "None" 1 "$1-49" 2 "$50-99" 3 "$100-149" 4 "$150-199" 5 "$200+" 6 "Prefer not to answer"
	. label values INCOME Income
	. label values FOODSHARE FoodShare
}

}

	*Drop observations of respondents who walked, drove, biked, taxi, or other
	. keep if TRANSPORTATIONMODE == 2 | TRANSPORTATIONMODE == 3

	*Collapse Likert responses into "Difficult" and "Not difficult" bins
	. recode EASETRAVELTOHOME (0/1 = 1 "Difficult") (2/4 = 2 "Not difficult"), gen(newEASETRAVELTOHOME) 
	. recode EASEPAYINGFORTRAVEL (0/1 = 1 "Difficult") (2/4 = 2 "Not difficult"), gen(newEASEPAYINGFORTRAVEL)
	. recode EASETRAVELTOPANTRY (0/1 = 1 "Difficult") (2/4 = 2 "Not difficult"), gen(newEASETRAVELTOPANTRY)
	. recode EASECARRYINGBAGS (0/1 = 1 "Difficult") (2/4 = 2 "Not difficult"), gen(newEASECARRYINGBAGS)

	*Perform Chi-square analysis
	. tabulate newEASETRAVELTOPANTRY TRANSPORTATIONMODE, row col chi2
	. tabulate newEASETRAVELTOHOME TRANSPORTATIONMODE, row col chi2
	. tabulate newEASEPAYINGFORTRAVEL TRANSPORTATIONMODE, row col chi2
	. tabulate newEASECARRYINGBAGS TRANSPORTATIONMODE, row col chi2
	. tabulate CART TRANSPORTATIONMODE, row col chi2
	. tabulate DISABILITY TRANSPORTATIONMODE, row col chi2
	. tabulate TRIPCHAINING TRANSPORTATIONMODE, row col chi2
	. tabulate CAROWNERSHIP TRANSPORTATIONMODE, row col chi2
}
*-------------------------------------------------------------------------------



*Table 6 Characteristics between patrons who travel less than 15 minutes to the pantry vs. more than 15 minutes to the pantry 
{ 

*RESET DATA
{ 
  clear
  
	*Import data file
	. import delimited "C:\Users\Payton\Desktop\Survey responses.csv", case(upper) clear

	*Label survey responses
	{ 
	. label define LANGUAGE 0 "English" 1 "Spanish"
	. label define YESNO 0 "Yes" 1 "No"
	. label values TAKENBEFORE YESNO
	. label values LANGUAGE LANGUAGE
	. label define TransportationMode 0 "Drove car" 1 "Got a ride" 2 "Walk" 3 "Bus" 4 "Bike" 5 "Taxi" 6 "Other"
	. label values TRANSPORTATIONMODE TransportationMode
	. label values CAROWNERSHIP YESNO
	. label define TRIPDURATION 0 "0-4 minutes" 1 "5-14 minutes" 2 "15-29 minutes" 3 "30-59 minutes" 4 "60+ minutes"
	. label values TRIPDURATION TRIPDURATION
	. label define ParkingDistance 0 "Less than 1 block" 1 "1 block" 2 "2 blocks" 3 "3 blocks" 4 "4+ blocks"
	. label values PARKINGDISTANCE ParkingDistance
	. label values TRIPCHAINING YESNO
	. label define HowLongComing 0 "First time" 1 "Less than 1 month" 2 "1-5 months" 3 "6-11 months" 4 "1 year or more"
	. label values HOWLONGCOMING HowLongComing
	. label define VisitsLastMonth 0 "0 months" 1 "1 month" 2 "2 months" 3 "3 months" 4 "4 months"
	. label define YESNOIDONTKNOW 0 "Yes" 1 "No" 2 "I don't know"
	. label values VISITSLASTMONTH VisitsLastMonth
	. label values CLOSESTPANTRY YESNOIDONTKNOW
	. label values DISABILITY YESNO
	. label values CART YESNO
	. label define DIFFICULTYEASE 0 "Very difficult" 1 "Somewhat difficult" 2 "Neither easy nor difficult" 3 "Somewhat easy" 4 "Very easy"
	. label define HELPFULNESS 0 "Very unhelpful" 1 "Somewhat unhelpful" 2 "Neither unhelpful nor helpful" 3 "Somewhat helpful" 4 "Very helpful"
	. label values EASECARRYINGBAGS DIFFICULTYEASE
	. label values EASEPAYINGFORTRAVEL DIFFICULTYEASE
	. label values EASETRAVELTOPANTRY DIFFICULTYEASE
	. label values EASETRAVELTOHOME DIFFICULTYEASE
	. label values EASEAFFORDBUS DIFFICULTYEASE
	. label values EASETRAVELTOBUSSTOP DIFFICULTYEASE
	. label values HELPFULNESSBUSFARE HELPFULNESS
	. label values HELPFULNESSHANDGRIPS HELPFULNESS
	. label values HELPFULNESSRIDESHARE HELPFULNESS
	. label values HELPFULNESSREDUCESPEED HELPFULNESS
	. label values HELPFULNESSBIKEPARKING HELPFULNESS
	. label define Gender 0 "Male" 1 "Female" 2 "Other"
	. label values GENDER Gender
	. label define Ethnicity 0 "Asian" 1 "Black" 2 "Native American/Pacific Islander" 3 "White" 4 "Hispanic/Latino" 5 "Other"
	. label values ETHNICITY Ethnicity
	. label define Income 0 "<$9999" 1 "$10000-22999" 2 "$23000-49999" 3 "$50000-74999" 4 "$75000+" 5 "Prefer not to answer"
	. label define FoodShare 0 "None" 1 "$1-49" 2 "$50-99" 3 "$100-149" 4 "$150-199" 5 "$200+" 6 "Prefer not to answer"
	. label values INCOME Income
	. label values FOODSHARE FoodShare
}

}

	*Collapse trip duration into two bins, <15 minutes and >15 minutes
	. recode TRIPDURATION (0/1 = 1 "<15 minutes") (2/4 = 2 ">15 minutes"), gen(newTRIPDURATION) 

	*Collapse Likert responses into "Difficult" and "Not difficult" bins
	. recode EASETRAVELTOHOME (0/1 = 1 "Difficult") (2/4 = 2 "Not difficult"), gen(newEASETRAVELTOHOME) 
	. recode EASEPAYINGFORTRAVEL (0/1 = 1 "Difficult") (2/4 = 2 "Not difficult"), gen(newEASEPAYINGFORTRAVEL)
	. recode EASETRAVELTOPANTRY (0/1 = 1 "Difficult") (2/4 = 2 "Not difficult"), gen(newEASETRAVELTOPANTRY)
	. recode EASECARRYINGBAGS (0/1 = 1 "Difficult") (2/4 = 2 "Not difficult"), gen(newEASECARRYINGBAGS)

	*Perform Chi-square analysis
	. tabulate newEASETRAVELTOPANTRY newTRIPDURATION, row col chi2
	. tabulate newEASETRAVELTOHOME newTRIPDURATION, row col chi2
	. tabulate newEASEPAYINGFORTRAVEL newTRIPDURATION, row col chi2
	. tabulate newEASECARRYINGBAGS newTRIPDURATION, row col chi2
	. tabulate CART newTRIPDURATION, row col chi2
	. tabulate DISABILITY newTRIPDURATION, row col chi2
	. tabulate TRIPCHAINING newTRIPDURATION, row col chi2
	. tabulate CAROWNERSHIP newTRIPDURATION, row col chi2
}
*-------------------------------------------------------------------------------



*Figure 1 Perceived difficulty traveling home from pantry with food, by transportation mode 
{ 

*RESET DATA
{ 
  clear
  
	*Import data file
	. import delimited "C:\Users\Payton\Desktop\Survey responses.csv", case(upper) clear

	*Label survey responses
	{ 
	. label define LANGUAGE 0 "English" 1 "Spanish"
	. label define YESNO 0 "Yes" 1 "No"
	. label values TAKENBEFORE YESNO
	. label values LANGUAGE LANGUAGE
	. label define TransportationMode 0 "Drove car" 1 "Got a ride" 2 "Walk" 3 "Bus" 4 "Bike" 5 "Taxi" 6 "Other"
	. label values TRANSPORTATIONMODE TransportationMode
	. label values CAROWNERSHIP YESNO
	. label define TRIPDURATION 0 "0-4 minutes" 1 "5-14 minutes" 2 "15-29 minutes" 3 "30-59 minutes" 4 "60+ minutes"
	. label values TRIPDURATION TRIPDURATION
	. label define ParkingDistance 0 "Less than 1 block" 1 "1 block" 2 "2 blocks" 3 "3 blocks" 4 "4+ blocks"
	. label values PARKINGDISTANCE ParkingDistance
	. label values TRIPCHAINING YESNO
	. label define HowLongComing 0 "First time" 1 "Less than 1 month" 2 "1-5 months" 3 "6-11 months" 4 "1 year or more"
	. label values HOWLONGCOMING HowLongComing
	. label define VisitsLastMonth 0 "0 months" 1 "1 month" 2 "2 months" 3 "3 months" 4 "4 months"
	. label define YESNOIDONTKNOW 0 "Yes" 1 "No" 2 "I don't know"
	. label values VISITSLASTMONTH VisitsLastMonth
	. label values CLOSESTPANTRY YESNOIDONTKNOW
	. label values DISABILITY YESNO
	. label values CART YESNO
	. label define DIFFICULTYEASE 0 "Very difficult" 1 "Somewhat difficult" 2 "Neither easy nor difficult" 3 "Somewhat easy" 4 "Very easy"
	. label define HELPFULNESS 0 "Very unhelpful" 1 "Somewhat unhelpful" 2 "Neither unhelpful nor helpful" 3 "Somewhat helpful" 4 "Very helpful"
	. label values EASECARRYINGBAGS DIFFICULTYEASE
	. label values EASEPAYINGFORTRAVEL DIFFICULTYEASE
	. label values EASETRAVELTOPANTRY DIFFICULTYEASE
	. label values EASETRAVELTOHOME DIFFICULTYEASE
	. label values EASEAFFORDBUS DIFFICULTYEASE
	. label values EASETRAVELTOBUSSTOP DIFFICULTYEASE
	. label values HELPFULNESSBUSFARE HELPFULNESS
	. label values HELPFULNESSHANDGRIPS HELPFULNESS
	. label values HELPFULNESSRIDESHARE HELPFULNESS
	. label values HELPFULNESSREDUCESPEED HELPFULNESS
	. label values HELPFULNESSBIKEPARKING HELPFULNESS
	. label define Gender 0 "Male" 1 "Female" 2 "Other"
	. label values GENDER Gender
	. label define Ethnicity 0 "Asian" 1 "Black" 2 "Native American/Pacific Islander" 3 "White" 4 "Hispanic/Latino" 5 "Other"
	. label values ETHNICITY Ethnicity
	. label define Income 0 "<$9999" 1 "$10000-22999" 2 "$23000-49999" 3 "$50000-74999" 4 "$75000+" 5 "Prefer not to answer"
	. label define FoodShare 0 "None" 1 "$1-49" 2 "$50-99" 3 "$100-149" 4 "$150-199" 5 "$200+" 6 "Prefer not to answer"
	. label values INCOME Income
	. label values FOODSHARE FoodShare
}

}

*Create stacked bar graph
drop if (TRANSPORTATIONMODE == 4 | TRANSPORTATIONMODE == 5 | TRANSPORTATIONMODE == 6)
. gen DIFFICULTY=1 if EASETRAVELTOHOME==0 | EASETRAVELTOHOME==1
. gen NEITHER=1 if EASETRAVELTOHOME==2
. gen EASE=1 if EASETRAVELTOHOME==3 | EASETRAVELTOHOME==4
. graph bar (count) DIFFICULTY NEITHER EASE, over(TRANSPORTATIONMODE) stack percent

*Collapse Likert responses into "Difficulty," "Neither," and "Ease" bins
. recode EASETRAVELTOHOME (0/1 = 1 "Difficult") (2 = 2 "Neither") (3/4 = 3 "Ease"), gen(new2EASETRAVELTOHOME) 

*Perform Chi-square analysis on groups
. tabulate new2EASETRAVELTOHOME TRANSPORTATIONMODE, row col chi2
}
*-------------------------------------------------------------------------------



*Figure 2 Distance traveled (roundtrip) by transportation mode 
{ 

*RESET DATA
{ 
  clear
  
	*Import data file
	. import delimited "C:\Users\Payton\Desktop\Survey responses.csv", case(upper) clear

	*Label survey responses
	{ 
	. label define LANGUAGE 0 "English" 1 "Spanish"
	. label define YESNO 0 "Yes" 1 "No"
	. label values TAKENBEFORE YESNO
	. label values LANGUAGE LANGUAGE
	. label define TransportationMode 0 "Drove car" 1 "Got a ride" 2 "Walk" 3 "Bus" 4 "Bike" 5 "Taxi" 6 "Other"
	. label values TRANSPORTATIONMODE TransportationMode
	. label values CAROWNERSHIP YESNO
	. label define TRIPDURATION 0 "0-4 minutes" 1 "5-14 minutes" 2 "15-29 minutes" 3 "30-59 minutes" 4 "60+ minutes"
	. label values TRIPDURATION TRIPDURATION
	. label define ParkingDistance 0 "Less than 1 block" 1 "1 block" 2 "2 blocks" 3 "3 blocks" 4 "4+ blocks"
	. label values PARKINGDISTANCE ParkingDistance
	. label values TRIPCHAINING YESNO
	. label define HowLongComing 0 "First time" 1 "Less than 1 month" 2 "1-5 months" 3 "6-11 months" 4 "1 year or more"
	. label values HOWLONGCOMING HowLongComing
	. label define VisitsLastMonth 0 "0 months" 1 "1 month" 2 "2 months" 3 "3 months" 4 "4 months"
	. label define YESNOIDONTKNOW 0 "Yes" 1 "No" 2 "I don't know"
	. label values VISITSLASTMONTH VisitsLastMonth
	. label values CLOSESTPANTRY YESNOIDONTKNOW
	. label values DISABILITY YESNO
	. label values CART YESNO
	. label define DIFFICULTYEASE 0 "Very difficult" 1 "Somewhat difficult" 2 "Neither easy nor difficult" 3 "Somewhat easy" 4 "Very easy"
	. label define HELPFULNESS 0 "Very unhelpful" 1 "Somewhat unhelpful" 2 "Neither unhelpful nor helpful" 3 "Somewhat helpful" 4 "Very helpful"
	. label values EASECARRYINGBAGS DIFFICULTYEASE
	. label values EASEPAYINGFORTRAVEL DIFFICULTYEASE
	. label values EASETRAVELTOPANTRY DIFFICULTYEASE
	. label values EASETRAVELTOHOME DIFFICULTYEASE
	. label values EASEAFFORDBUS DIFFICULTYEASE
	. label values EASETRAVELTOBUSSTOP DIFFICULTYEASE
	. label values HELPFULNESSBUSFARE HELPFULNESS
	. label values HELPFULNESSHANDGRIPS HELPFULNESS
	. label values HELPFULNESSRIDESHARE HELPFULNESS
	. label values HELPFULNESSREDUCESPEED HELPFULNESS
	. label values HELPFULNESSBIKEPARKING HELPFULNESS
	. label define Gender 0 "Male" 1 "Female" 2 "Other"
	. label values GENDER Gender
	. label define Ethnicity 0 "Asian" 1 "Black" 2 "Native American/Pacific Islander" 3 "White" 4 "Hispanic/Latino" 5 "Other"
	. label values ETHNICITY Ethnicity
	. label define Income 0 "<$9999" 1 "$10000-22999" 2 "$23000-49999" 3 "$50000-74999" 4 "$75000+" 5 "Prefer not to answer"
	. label define FoodShare 0 "None" 1 "$1-49" 2 "$50-99" 3 "$100-149" 4 "$150-199" 5 "$200+" 6 "Prefer not to answer"
	. label values INCOME Income
	. label values FOODSHARE FoodShare
}

}

*Drop "Bike" and "Other" observations
. drop if (TRANSPORTATIONMODE >3)

*create a mean total distance and SD total distance
. collapse(mean) meanDISTANCE=TOTALDISTANCE (sd) sdDISTANCE=TOTALDISTANCE (count) n=TOTALDISTANCE, by(TRANSPORTATIONMODE)

*create the high and low values of the confidence interval
. generate HIGH = meanDISTANCE + invttail(n-1,0.025)*(sdDISTANCE / sqrt(n))
. generate LOW = meanDISTANCE - invttail(n-1,0.025)*(sdDISTANCE / sqrt(n))

*add error bars to the graph
. graph twoway (bar meanDISTANCE TRANSPORTATIONMODE) (rcap LOW HIGH TRANSPORTATIONMODE)
}
*-------------------------------------------------------------------------------



*Figure 3 Perceived difficulty traveling from origin to pantry, by travel time 
{ 

*RESET DATA
{ 
  clear
  
	*Import data file
	. import delimited "C:\Users\Payton\Desktop\Survey responses.csv", case(upper) clear

	*Label survey responses
	{ 
	. label define LANGUAGE 0 "English" 1 "Spanish"
	. label define YESNO 0 "Yes" 1 "No"
	. label values TAKENBEFORE YESNO
	. label values LANGUAGE LANGUAGE
	. label define TransportationMode 0 "Drove car" 1 "Got a ride" 2 "Walk" 3 "Bus" 4 "Bike" 5 "Taxi" 6 "Other"
	. label values TRANSPORTATIONMODE TransportationMode
	. label values CAROWNERSHIP YESNO
	. label define TRIPDURATION 0 "0-4 minutes" 1 "5-14 minutes" 2 "15-29 minutes" 3 "30-59 minutes" 4 "60+ minutes"
	. label values TRIPDURATION TRIPDURATION
	. label define ParkingDistance 0 "Less than 1 block" 1 "1 block" 2 "2 blocks" 3 "3 blocks" 4 "4+ blocks"
	. label values PARKINGDISTANCE ParkingDistance
	. label values TRIPCHAINING YESNO
	. label define HowLongComing 0 "First time" 1 "Less than 1 month" 2 "1-5 months" 3 "6-11 months" 4 "1 year or more"
	. label values HOWLONGCOMING HowLongComing
	. label define VisitsLastMonth 0 "0 months" 1 "1 month" 2 "2 months" 3 "3 months" 4 "4 months"
	. label define YESNOIDONTKNOW 0 "Yes" 1 "No" 2 "I don't know"
	. label values VISITSLASTMONTH VisitsLastMonth
	. label values CLOSESTPANTRY YESNOIDONTKNOW
	. label values DISABILITY YESNO
	. label values CART YESNO
	. label define DIFFICULTYEASE 0 "Very difficult" 1 "Somewhat difficult" 2 "Neither easy nor difficult" 3 "Somewhat easy" 4 "Very easy"
	. label define HELPFULNESS 0 "Very unhelpful" 1 "Somewhat unhelpful" 2 "Neither unhelpful nor helpful" 3 "Somewhat helpful" 4 "Very helpful"
	. label values EASECARRYINGBAGS DIFFICULTYEASE
	. label values EASEPAYINGFORTRAVEL DIFFICULTYEASE
	. label values EASETRAVELTOPANTRY DIFFICULTYEASE
	. label values EASETRAVELTOHOME DIFFICULTYEASE
	. label values EASEAFFORDBUS DIFFICULTYEASE
	. label values EASETRAVELTOBUSSTOP DIFFICULTYEASE
	. label values HELPFULNESSBUSFARE HELPFULNESS
	. label values HELPFULNESSHANDGRIPS HELPFULNESS
	. label values HELPFULNESSRIDESHARE HELPFULNESS
	. label values HELPFULNESSREDUCESPEED HELPFULNESS
	. label values HELPFULNESSBIKEPARKING HELPFULNESS
	. label define Gender 0 "Male" 1 "Female" 2 "Other"
	. label values GENDER Gender
	. label define Ethnicity 0 "Asian" 1 "Black" 2 "Native American/Pacific Islander" 3 "White" 4 "Hispanic/Latino" 5 "Other"
	. label values ETHNICITY Ethnicity
	. label define Income 0 "<$9999" 1 "$10000-22999" 2 "$23000-49999" 3 "$50000-74999" 4 "$75000+" 5 "Prefer not to answer"
	. label define FoodShare 0 "None" 1 "$1-49" 2 "$50-99" 3 "$100-149" 4 "$150-199" 5 "$200+" 6 "Prefer not to answer"
	. label values INCOME Income
	. label values FOODSHARE FoodShare
}

}

*Collapse trip duration into three bins, <15 minutes, 15-29 min, and >30 minutes
. recode TRIPDURATION (0/1 = 1 "<15 minutes") (2 = 2 "15-29 minutes") (3/4 = 3 ">30 minutes"), gen(new2TRIPDURATION) 

*Create stacked bar graph
. gen DIFFICULTY=1 if EASETRAVELTOPANTRY==0 | EASETRAVELTOPANTRY==1
. gen NEITHER=1 if EASETRAVELTOPANTRY==2
. gen EASE=1 if EASETRAVELTOPANTRY==3 | EASETRAVELTOPANTRY==4
. graph bar (count) DIFFICULTY NEITHER EASE, over(new2TRIPDURATION) stack percent

*Collapse Likert responses into "Difficulty," "Neither," and "Ease" bins
. recode EASETRAVELTOPANTRY (0/1 = 1 "Difficulty") (2 = 2 "Neither") (3/4 = 3 "Ease"), gen(new2EASETRAVELTOPANTRY) 

*Perform Chi-square analysis on groups
. tabulate new2EASETRAVELTOPANTRY new2TRIPDURATION, row col chi2
}
*-------------------------------------------------------------------------------



*Figure 4 Perceived difficulty traveling from origin to pantry, by distance from origin to pantry 
{ 

*RESET DATA
{ 
  clear
  
	*Import data file
	. import delimited "C:\Users\Payton\Desktop\Survey responses.csv", case(upper) clear

	*Label survey responses
	{ 
	. label define LANGUAGE 0 "English" 1 "Spanish"
	. label define YESNO 0 "Yes" 1 "No"
	. label values TAKENBEFORE YESNO
	. label values LANGUAGE LANGUAGE
	. label define TransportationMode 0 "Drove car" 1 "Got a ride" 2 "Walk" 3 "Bus" 4 "Bike" 5 "Taxi" 6 "Other"
	. label values TRANSPORTATIONMODE TransportationMode
	. label values CAROWNERSHIP YESNO
	. label define TRIPDURATION 0 "0-4 minutes" 1 "5-14 minutes" 2 "15-29 minutes" 3 "30-59 minutes" 4 "60+ minutes"
	. label values TRIPDURATION TRIPDURATION
	. label define ParkingDistance 0 "Less than 1 block" 1 "1 block" 2 "2 blocks" 3 "3 blocks" 4 "4+ blocks"
	. label values PARKINGDISTANCE ParkingDistance
	. label values TRIPCHAINING YESNO
	. label define HowLongComing 0 "First time" 1 "Less than 1 month" 2 "1-5 months" 3 "6-11 months" 4 "1 year or more"
	. label values HOWLONGCOMING HowLongComing
	. label define VisitsLastMonth 0 "0 months" 1 "1 month" 2 "2 months" 3 "3 months" 4 "4 months"
	. label define YESNOIDONTKNOW 0 "Yes" 1 "No" 2 "I don't know"
	. label values VISITSLASTMONTH VisitsLastMonth
	. label values CLOSESTPANTRY YESNOIDONTKNOW
	. label values DISABILITY YESNO
	. label values CART YESNO
	. label define DIFFICULTYEASE 0 "Very difficult" 1 "Somewhat difficult" 2 "Neither easy nor difficult" 3 "Somewhat easy" 4 "Very easy"
	. label define HELPFULNESS 0 "Very unhelpful" 1 "Somewhat unhelpful" 2 "Neither unhelpful nor helpful" 3 "Somewhat helpful" 4 "Very helpful"
	. label values EASECARRYINGBAGS DIFFICULTYEASE
	. label values EASEPAYINGFORTRAVEL DIFFICULTYEASE
	. label values EASETRAVELTOPANTRY DIFFICULTYEASE
	. label values EASETRAVELTOHOME DIFFICULTYEASE
	. label values EASEAFFORDBUS DIFFICULTYEASE
	. label values EASETRAVELTOBUSSTOP DIFFICULTYEASE
	. label values HELPFULNESSBUSFARE HELPFULNESS
	. label values HELPFULNESSHANDGRIPS HELPFULNESS
	. label values HELPFULNESSRIDESHARE HELPFULNESS
	. label values HELPFULNESSREDUCESPEED HELPFULNESS
	. label values HELPFULNESSBIKEPARKING HELPFULNESS
	. label define Gender 0 "Male" 1 "Female" 2 "Other"
	. label values GENDER Gender
	. label define Ethnicity 0 "Asian" 1 "Black" 2 "Native American/Pacific Islander" 3 "White" 4 "Hispanic/Latino" 5 "Other"
	. label values ETHNICITY Ethnicity
	. label define Income 0 "<$9999" 1 "$10000-22999" 2 "$23000-49999" 3 "$50000-74999" 4 "$75000+" 5 "Prefer not to answer"
	. label define FoodShare 0 "None" 1 "$1-49" 2 "$50-99" 3 "$100-149" 4 "$150-199" 5 "$200+" 6 "Prefer not to answer"
	. label values INCOME Income
	. label values FOODSHARE FoodShare
}

}


*Combine DISTANCETODESTINATION into 3 bins, called new2DISTANCETODESTINATION
{ 
. egen new2DISTANCETODESTINATION = cut(DISTANCETODESTINATION), at(0, 1, 2, 100) icodes
. label define DistanceBins3 0 "<1 mile" 1 "1-2 miles" 2 "2+ miles"
. label values new2DISTANCETODESTINATION DistanceBins3

*Create stacked bar graph
. gen DIFFICULTY=1 if EASETRAVELTOPANTRY==0 | EASETRAVELTOPANTRY==1
. gen NEITHER=1 if EASETRAVELTOPANTRY==2
. gen EASE=1 if EASETRAVELTOPANTRY==3 | EASETRAVELTOPANTRY==4
. graph bar (count) DIFFICULTY NEITHER EASE, over(new2DISTANCETODESTINATION) stack percent

*Collapse Likert responses into "Difficulty," "Neither," and "Ease" bins
. recode EASETRAVELTOPANTRY (0/1 = 1 "Difficulty") (2 = 2 "Neither") (3/4 = 3 "Ease"), gen(new2EASETRAVELTOPANTRY) 

*Perform Chi-square analysis on groups
. tabulate new2EASETRAVELTOPANTRY new2DISTANCETODESTINATION, row col chi2
}
*-------------------------------------------------------------------------------


